<template>
  <h1>这里是网站首页</h1>
</template>

<script setup lang="ts">
onMounted(() => {
  let token = getToken();
  if (!token) {
    router.push({path: "/login"})
  }
})

</script>

<style>

</style>
